package com.smxy.mall.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel()
@Data
public class GoodsReq {
    @ApiModelProperty(value = "商品id",required = false)
    private Integer id;
    @ApiModelProperty(value = "分类id",example = "34")
    private Integer categoryId;
    @ApiModelProperty(value = "商品名",example = "铁观音")
    private String goodsName; //商品名
    @ApiModelProperty(value = "商品图片",example = "http://localhost:8083/uploadImg/1591466655498img2.jpg")
    private String cover; //商品图片
    @ApiModelProperty(value = "商品价格",example = "99.99")
    private Double price; //商品价格
    @ApiModelProperty(value = "划线价",example = "188.88")
    private Double linePrice; //划线价
    @ApiModelProperty(value = "轮播图",example = "[http://localhost:8083/uploadImg/1591466655498img2.jpg]")
    private String imgs; //轮播图
    @ApiModelProperty(value = "库存",example = "100")
    private int num; //库存
    @ApiModelProperty(value = "商品详情",example = "<p>商品详情</p>")
    private String detail; //商品详情
    private String info; //介绍宣传语
}
